package com.mz.ozy.mvp.view;

import android.app.Activity;
import android.content.Context;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.CheckBean;
import com.mz.ozy.bean.HomeMerBean;
import com.mz.ozy.bean.ObShopBean;
import com.mz.ozy.bean.UnreadMsgBean;

import org.json.JSONObject;

/**
 * @author
 * @date 2018/7/25
 * @description
 */
public class HomeContract {

    public interface View extends BaseView {
        void checkUpdateVersionSuccess(CheckBean o);

        void getMyMerSuccess(HomeMerBean o);

        void getOrSuccess(HomeMerBean o);

        void getHomeInfoSuccess(HomeMerBean homeMerBean);

        void exitLoginSuccess(JSONObject bean);
        void getUnreadMsgSuccess(UnreadMsgBean bean);
        void getProductSuccess(ObShopBean bean);
    }

    public interface Presenter extends BasePresenter<View> {
        void getMyMer(Activity activity);

        void checkUpdateVersion(Activity activity);

        void getOrMer(Activity activity);

        void getHomeInfo(Context context, boolean isFirst);

        void getUnreadMsg(Context context);
        void getProduct(Context context,String pageNo);
    }


}
